package cn.wolfcode.tx;

import org.aspectj.lang.annotation.Pointcut;

public class MyTransactionManager {
    @Pointcut("execution(* cn.wolfcode.service.impl.*ServiceImpl.*(..))")
    public void begin(){
        System.out.println("开启事务");
    }
    public void commit(){
        System.out.println("提交事务");
    }
    public void rollback(){
        System.out.println("回滚事务");
    }
}
